package com.booklove.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.booklove.domain.po.Notesjudge;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.booklove.domain.vo.NotesjudgeVO;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 审核笔记 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-09-22
 */
public interface NotesjudgeMapper extends BaseMapper<Notesjudge> {

    @Select("select * from notesjudge")
    Page<NotesjudgeVO> selectPageVO(Page<Notesjudge> page, String name);

    @Select("select * from notesjudge where note_id=#{id}")
    Notesjudge getByNoteId(Long id);
}
